package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("doctor")
public class Doctor {
    @TableId(value = "did", type = IdType.AUTO)
    private Integer dId;
    
    @com.baomidou.mybatisplus.annotation.TableField("dname")
    private String dName;
    
    @com.baomidou.mybatisplus.annotation.TableField("dsex")
    private String dSex;
    
    @com.baomidou.mybatisplus.annotation.TableField("dage")
    private Integer dAge;
    
    @com.baomidou.mybatisplus.annotation.TableField("dtitle")
    private String dTitle;
    
    @com.baomidou.mybatisplus.annotation.TableField("dmajor")
    private String dMajor;
    
    @com.baomidou.mybatisplus.annotation.TableField("dinfo")
    private String dInfo;
    
    @com.baomidou.mybatisplus.annotation.TableField("dstate")
    private Integer dState;
    
    @com.baomidou.mybatisplus.annotation.TableField("depid")
    private Integer depId;
    
    @com.baomidou.mybatisplus.annotation.TableField("dcreatetime")
    private LocalDateTime dCreateTime;

    public Doctor(String dName, String dSex, Integer dAge, String dTitle, String dMajor, String dInfo, Integer dState, Integer depId) {
        this.dName = dName;
        this.dSex = dSex;
        this.dAge = dAge;
        this.dTitle = dTitle;
        this.dMajor = dMajor;
        this.dInfo = dInfo;
        this.dState = dState;
        this.depId = depId;
    }
}
